/*
 * @Description: vuex入口配置文件
 * @Version: 2.0
 * @Autor: lhl
 * @Date: 2021-04-05 14:09:04
 * @LastEditors: lhl
 * @LastEditTime: 2021-05-04 23:53:14
 */
import { createStore } from 'vuex'
const store = createStore({
  state: {
    langPicker: false,
    isLoading: false
  },
  mutations: {
    showLangPicker(state) {
      state.langPicker = true
    },
    hideLangPicker(state) {
      state.langPicker = false
    },
    showLoading(state) {
      state.isLoading = true
    },
    hideLoading(state) {
      state.isLoading = false
    }
  },
  getters: {
    langPicker: (state) => state.langPicker,
    isLoading: (state) => state.isLoading
  },
  actions: {},
  modules: {}
})
export default store
